package com.pureut.quality.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pureut.quality.domain.QualityBadSample;
import com.pureut.quality.domain.dto.QualityBadSampleDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/***
 * 不良样品mapper
 * Author:C
 * Date:2023/02/06 17:32
 * @DESC
 */
@Mapper
public interface QualityBadSampleMapper extends BaseMapper<QualityBadSample> {

    /**
     * 获取数量
     */
    int getNum(@Param("inspectionSheetNo") String inspectionSheetNo,@Param("deptId") Long deptId);

    /**
     * 列表
     */
    List<QualityBadSampleDto> getList(String inspectionSheetNo);
}
